<html>
<head>
<script type="text/javascript">
    function autoPrint(data) 
    {
        var mywindow = window.open('table.html', 'Print Aset', 'width=717');

        mywindow.print();
        return true;
    }
</script>
</head>
<body>

<input type="button" value="Print Div" onclick="autoPrint(this)" />

</body>
</html>

